package com.weiyuwqj.app.mobile.picture;

import com.weiyuwqj.api.service.SysPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zhengrf
 * Date: 2017-04-07
 * TIme: 13:50
 * Description : 图片控制器
 */
@Controller
@RequestMapping(value = "/mobile/picture")
public class MobilePictureListController {

	@Autowired
	private SysPictureService pictureService;

	/**
	 * 首页/投资 滚动图
	 * @return 滚动图
	 */
	@ResponseBody
	@RequestMapping(value = "/list")
	public Object getPictureList() {
		return pictureService.getMainPicture(6);
	}

}
